package com.ruoyi.web.controller.wuchuan;

import com.ruoyi.wuchuan.domain.EcoNameDTO;
import com.ruoyi.wuchuan.service.DictDataTypeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * 指标类型
 */
@Controller
@RequestMapping("dictDataTypeController")
public class DictDataTypeController {

    @Resource
    private DictDataTypeService dictDataTypeService;

    /**
     * 查询字典指标数据
     * @return
     */
    @RequestMapping(value = "getDictData", method = RequestMethod.POST)
    @ResponseBody
   public List<EcoNameDTO> getDictData(){
        return dictDataTypeService.getDictData();
   }
}
